<script setup>
  import TabBar from "@/components/tabbar/TabBar.vue";
  import {useRoute} from "vue-router";
  import Loading from "@/components/loading/Loading.vue";

  const route = useRoute()

</script>

<template>
  <div class="app">
    <!--让Home组件不被销毁-->
    <router-view v-slot="{ Component }">
      <keep-alive include="Home">
        <component :is="Component"/>
      </keep-alive>
    </router-view>

    <!--用路由的自定义属性对tabbar进行隐藏-->
    <tab-bar v-show="!route.meta.hideTabbar"/>

    <!--加载动画-->
    <loading/>

    <!--<tab-bar/>-->
  </div>
</template>

<style scoped>
</style>